<?php
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
defined('IN_WZ') or exit('No direct script access allowed');
/**
 * 内容超时自动失效
 */


$db = load_class('db');

//24小时
$posttime = SYS_TIME-86400;
$where = "`status`=6 AND `addtime`<$posttime";
$db->update('pay', array('status'=>4), $where);
echo "ok \r\n";